import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;

public class ActivityView extends JPanel implements ActionListener{
        
        private JButton skill, hunt, trade;

		public ActivityView(){
                setBackground(new Color(255, 220, 51));
                
                setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
                
                add(Box.createRigidArea(new Dimension(350, 10)));
                skill = new JButton("Use Skill");
                skill.addActionListener(this);
                skill.setAlignmentX(JLabel.CENTER_ALIGNMENT);
                add(skill);
                
                add(Box.createRigidArea(new Dimension(350, 3)));
                JLabel skillLabel = new JLabel("Press this button to use your profession's skill.");
                skillLabel.setAlignmentX(JLabel.CENTER_ALIGNMENT);
                add(skillLabel);
                
                add(Box.createRigidArea(new Dimension(350, 45)));
                hunt = new JButton("Go Hunting");
                hunt.addActionListener(this);
                hunt.setAlignmentX(JLabel.CENTER_ALIGNMENT);
                add(hunt);
                
                add(Box.createRigidArea(new Dimension(350, 3)));
                JLabel huntLabel = new JLabel("Press this button to go hunting for extra food.");
                huntLabel.setAlignmentX(JLabel.CENTER_ALIGNMENT);
                add(huntLabel);
                
                add(Box.createRigidArea(new Dimension(350, 45)));
                trade = new JButton("Attempt to Trade");
                trade.addActionListener(this);
                trade.setAlignmentX(JLabel.CENTER_ALIGNMENT);
                add(trade);
                
                add(Box.createRigidArea(new Dimension(350, 3)));
                JLabel tradeLabel = new JLabel("Press this button to see if there is somebody");
                tradeLabel.setAlignmentX(JLabel.CENTER_ALIGNMENT);
                add(tradeLabel);
                
                JLabel tradeLabel2 = new JLabel("nearby willing to trade with you.");
                tradeLabel2.setAlignmentX(JLabel.CENTER_ALIGNMENT);
                add(tradeLabel2);
                           
        }
		
		public void actionPerformed(ActionEvent e) {
			if (e.getActionCommand().equals("Use Skill")) {
				
			} 
			else if (e.getActionCommand().equals("Go Hunting")) {
				
			} 
			else if (e.getActionCommand().equals("Attempt to Trade")) {
				
			}			
		}
}
